﻿@{
	ViewBag.Title = "手术费用查询";
	Layout = "~/Views/Shared/_Index.cshtml";
}


<div class="rows">
	<div class="panel panel-default">
		<table class="form">
			<tr>
				<th class="formTitle">住院号：</th>
				<td class="formValue">
					<input id="zyh" type="text" class="form-control formClearIgnore" style="width:60px"/>
				</td>
				<th class="formTitle">姓名：</th>
				<td class="formValue">
					<input id="xm" type="text" class="form-control formClearIgnore" style="width:60px" />
				</td>
				<th class="formTitle">科室：</th>
				<td class="formValue">
					<input id="ks" type="text" class="form-control formClearIgnore" style="width:60px" />
				</td>
				<th class="formTitle">病区：</th>
				<td class="formValue">
					<input id="bq" type="text" class="form-control formClearIgnore" style="width:60px" />
				</td>

				<th class="formTitle"></th>
				<td class="formValue" style="padding-left:20px;">
					<input type="button" id="btn_search" onclick="submit();" class="btn btn-primary btn-md" value="查询" style="width:55px" />
				</td>
				<th></th>
				<td></td>
				<th></th>
				<td></td>
			</tr>
		</table>
	</div>
</div>
<div class="ui-layout" id="layout" style="height:100%;width:100%;">
	<iframe class="ui-layout-center" style="width:100%;" id="iframerightiframerightiframerightttt" name="iframerightiframerightiframerightttt"
			scrolling="auto" allowtransparency="true" frameborder="0"></iframe>
</div>
<script type="text/javascript">
    var reportServerHOST = '@(ViewBag.ReportServerHOST)';
    var orgId = '@(ViewBag.OrgId)';
    $(function(){
        submit();
    });

    function submit() {

		//var url = reportServerHOST + 'Pages/ReportViewer.aspx?%2fNewtouch.Report.OR%2f%e6%89%8b%e6%9c%af%e7%99%bb%e8%ae%b0%e6%9f%a5%e8%af%a2&rs:Command=Render&orgId=' + orgId;
		var url = reportServerHOST + 'Pages/ReportViewer.aspx?%2fNewtouch.Report.OR%2f%e6%89%8b%e6%9c%af%e8%b4%b9%e7%94%a8%e6%9f%a5%e8%af%a2&rs:Command=Render';
		url += "&zyh=" + $('#zyh').val() + "&xm=" + $('#xm').val() + "&ks=" + $('#ks').val() + "&bq=" + $('#bq').val();
		setTimeout("$.loading(true, '正在请求报表页面...');", 10);
		$("#iframerightiframerightiframerightttt").attr('src', url);

    }
	 
    $("#iframerightiframerightiframerightttt").load(function () {
        $.loading(false);
    });

    $(function () {
        var h = $(window).height() - 55
        $('#layout iframe').css('height', h);

    });

    //刷新列表
    function refReport() {
        $("#btn_search").trigger('click');
    }

</script>
